import request from '@/utils/request'

// 查询品牌列表
export function listLogo(query) {
  return request({
    url: '/shop/logo/list',
    method: 'get',
    params: query
  })
}

// 查询品牌详细
export function getLogo(logoId) {
  return request({
    url: '/shop/logo/' + logoId,
    method: 'get'
  })
}

// 新增品牌
export function addLogo(data) {
  return request({
    url: '/shop/logo',
    method: 'post',
    data: data
  })
}

// 修改品牌
export function updateLogo(data) {
  return request({
    url: '/shop/logo',
    method: 'put',
    data: data
  })
}

// 删除品牌
export function delLogo(logoId) {
  return request({
    url: '/shop/logo/' + logoId,
    method: 'delete'
  })
}

// 导出品牌
export function exportLogo(query) {
  return request({
    url: '/shop/logo/export',
    method: 'get',
    params: query
  })
}